/*
 * $Id: MerchantModuleRight.java,v 1.4 2013/08/04 06:59:19 administrator Exp $
 */
package com.roc.pojo;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * @author $Author: administrator $
 * @version $Revision: 1.4 $
 */

@Entity
@Table(name = "t_merchant_module")
public class MerchantModuleRight extends BaseBean implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -8250192019083647457L;
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "MERCHANT_MODULE_seq")
	@SequenceGenerator(name = "MERCHANT_MODULE_seq", sequenceName = "MERCHANT_MODULE_seq", allocationSize = 10, initialValue = 1)
	private java.lang.Long seq;
	@Column(name="module_code",nullable=false)
	private String moduleCode;
	@Column(name="merchant_no",nullable=false)
	private String merchantNo;
	
	@Transient
	private Operators merchant;
	@Transient
	private Module module;

	public MerchantModuleRight(){}
	
	

	public String getModuleCode() {
		return moduleCode;
	}



	public void setModuleCode(String moduleCode) {
		this.moduleCode = moduleCode;
	}



	public String getMerchantNo() {
		return merchantNo;
	}



	public void setMerchantNo(String merchantNo) {
		this.merchantNo = merchantNo;
	}



	/**
	 * @return the seq
	 */
	public java.lang.Long getSeq() {
		return seq;
	}

	/**
	 * @param seq the seq to set
	 */
	public void setSeq(java.lang.Long seq) {
		this.seq = seq;
	}

	

	public Operators getMerchant() {
		return merchant;
	}

	public void setMerchant(Operators merchant) {
		this.merchant = merchant;
	}

	/**
	 * @param module the module to set
	 */
	public void setModule(Module module) {
		this.module = module;
	}

	/**
	 * @return the module
	 */
	public Module getModule() {
		return module;
	}



}
